<ion-view cache-view="false" hide-back-button="true" title="今日打折">
  <ion-nav-buttons side="left">
    <a class="button button-clear" ui-sref="dash.home">
      <i class="icon ion-chevron-left"></i>
    </a>
  </ion-nav-buttons>
  <ion-content>
    <div class="divider"></div>
    <ul class="list">
      <li class="item row" ng-click="changeToGoods(goods)" ng-repeat="goods in goodslist">
        <div class="col col-33">
          <img alt="" ng-if="!goods.smimgurl" ng-src="img/hd/file.png" style="width: 100%">
          <img alt="" ng-if="goods.smimgurl" ng-src="{{goods.smimgurl}}" style="width: 100%">
        </div>
        <div class="col">
          <div class="goods-name" style="margin-top: 8px; padding-left: 5px">
            {{goods.name}}
          </div>
          <div>
            <div class="row" style="margin-top: 35px;">
							<div class="col col-30">
                <b style="float: left;">
                  <span class="main-color">{{goods.cx_price}}元</span>
                  <del style="color: #b8b8b8; font-size: 12px">{{goods.sc_price}}元</del>
                </b>
                <div  style="float: right; margin-top: -10px">
  								<button type="button" name="button" class="button main-background main-btn" style="width: 100px;" ng-if="goods.amount > 0" ng-click="addCart(goods); $event.stopPropagation();">加入购物车</button>
  								<button type="button" name="button" class="button main-btn" style="width: 100px;" disabled="disabled" ng-if="goods.amount <= 0">已售完</button>
  							</div>
								<div style="clear: both"></div>
							</div>
							<!-- <div class="col">
								<button type="button" name="button" class="button main-background main-btn" style="margin-top: -25px; width: 100px;margin-left: -20px" ng-if="goods.amount > 0" ng-click="addCart(goods); $event.stopPropagation();">加入购物车</button>
								<button type="button" name="button" class="button main-btn" style="margin-top: -25px; width: 100px;margin-left: -20px" disabled="disabled" ng-if="goods.amount <= 0">已售完</button>
							</div> -->
						</div>
          </div>
        </div>
      </li>
    </ul>
  </ion-content>

  <div class="mycart" ui-sref="order.cart" ui-sref-opts="{reload: true}">
    <div class="button button-icon icon ion-android-cart" style="color: #fff; background-color: rgba(0,0,0,0.5); width: 50px; height: 40px;border-radius: 10px;"></div>
    <span class="cart-count" ng-hide="!count ||count == 0">{{count}}</span>
  </div>
</ion-view>
